package org.jeecg.modules.travel.service;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.modules.travel.dto.feedback.AppFeedbackPageDto;
import org.jeecg.modules.travel.dto.feedback.FeedbackAddDto;
import org.jeecg.modules.travel.dto.feedback.FeedbackAnswerDto;
import org.jeecg.modules.travel.entity.JhFeedback;
import org.jeecg.modules.travel.vo.feedback.AppFeedbackRecordVo;
import org.jeecg.modules.travel.vo.feedback.JhFeedbackVo;

import java.lang.reflect.InvocationTargetException;

/**
 * @Description: 用户反馈表
 * @Author: jeecg-boot
 * @Date:   2025-04-19
 * @Version: V1.0
 */
public interface IJhFeedbackService extends IService<JhFeedback> {

    /**
     * 移动端反馈
     * @param dto 参数
     * @return {@code String }
     * @author wentao.wang
     * @date 2025-04-20 14:11:21
     */
    String coupleBack(FeedbackAddDto dto);

    IPage<AppFeedbackRecordVo> appFeedbackPageList(AppFeedbackPageDto dto,Page<JhFeedback> page, QueryWrapper<JhFeedback> queryWrapper);

    /**
     *  获取
     * @param userNameByToken
     * @param feedbckDto
     * @return
     */
    String answer(String userNameByToken, FeedbackAnswerDto feedbckDto);

    IPage<JhFeedbackVo> queryPageList(Page<JhFeedback> page, QueryWrapper<JhFeedback> queryWrapper);
}
